package com.woniuxy.service.impl;

import com.woniuxy.entity.Product;
import com.woniuxy.service.ProductService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@SpringBootTest
@RunWith(SpringRunner.class)
public class ProductServiceImplTest {
    @Autowired
    ProductService productService;
    @Test
    public void addOne() {
        Product product = new Product("add", 1234D, 10);
        productService.addOne(product);
        System.err.println(product);
    }
}